import ajax from '@/api/ajax'

const { url } = require("../../build/config");

// console.log(config)

//  url.base_url;
const base_url = `${url.base_url}/api/file-apply`


export function passApply(key) {
  return ajax({
    url: `${base_url}/pass/${key}`,
    method: 'put',
    showMsg: true,
  })
}

export function abortApply(key) {
  return ajax({
    url: `${base_url}/abort/${key}`,
    method: 'put',
    showMsg: true,
  })
}

export function applyPage(data) {
  return ajax({
    url: `${base_url}/page`,
    method: 'post',
    data: data,

  })

}
